12. Reading and Writing Data to HDFS

Spark L3 SC 12 Reading And Writing Data To HDFS

What are the file types that are supported in HDFS?

What are the file types that are supported in HDFS? (may be more than one answer)

SOLUTION:
  • Avro files
  • Parquet files

Commands for HDFS

Which of these are valid HDFS commands that you can use? (may be more than one answer)

SOLUTION:
  • `hadoop fs mkdir`: makes a directory
  • `hdfs dfs -copyToLocal` : copies files to local (like your laptop)